home *** CD-ROM | disk | FTP | other *** search
/ Nejlepší hry / Nejlepsi hry.iso / hry / 6zenichu / 6+1 install_txt.exe / 6 zenichu a 1 navic.exe / scripts / DefineButton2_3612 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2003-11-28  |  926 b   |  37 lines

  1. on(release){
  2.    if(_root.poz == "b")
  3.    {
  4.       if(0 < _root.draglej)
  5.       {
  6.          if(_root.draglej == 8 || _root.draglej == 9)
  7.          {
  8.             _root.venca.tripnum = _root.draglej;
  9.             _root.d_venca.l = "mon_021_i8_100";
  10.             _root.d_venca.i = "go";
  11.          }
  12.          else if(eval("_root.mon_021_i" add _root.draglej add "_100") == undefined)
  13.          {
  14.             _root.d_venca.l = "mon_021_iundef_100";
  15.             _root.d_venca.i = "go";
  16.          }
  17.          else
  18.          {
  19.             _root.d_venca.l = "mon_021_i" add _root.draglej add "_100";
  20.             _root.d_venca.i = "go";
  21.          }
  22.          _root.stopdragall();
  23.       }
  24.       else
  25.       {
  26.          _root.d_venca.l = "mon_021_100";
  27.          _root.d_venca.i = "go";
  28.       }
  29.       _root.hideall();
  30.    }
  31.    else
  32.    {
  33.       _root.venca.gotoAndPlay(_root.poz add "b");
  34.       _root.stopdragall();
  35.    }
  36. }
  37.